package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;


@TableName("mkt_task")
public class MktTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 营销活动的d */
    @TableField("act_id")
    private Long actId;

    /** 营销任务 */
    @Excel(name = "营销任务")
    @TableField("name")
    private String name;

    /** 可完成功能 */
    @Excel(name = "可完成功能")
    @TableField("completable_function")
    private Integer completableFunction;

    /** 参与限制 */
    @Excel(name = "参与限制")
    @TableField("participation_restriction")
    private Integer participationRestriction;

    /** 次数限制 */
    @Excel(name = "次数限制")
    @TableField("frequency_limit")
    private Integer frequencyLimit;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setActId(Long actId)
    {
        this.actId = actId;
    }

    public Long getActId()
    {
        return actId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCompletableFunction(Integer completableFunction)
    {
        this.completableFunction = completableFunction;
    }

    public Integer getCompletableFunction()
    {
        return completableFunction;
    }
    public void setParticipationRestriction(Integer participationRestriction)
    {
        this.participationRestriction = participationRestriction;
    }

    public Integer getParticipationRestriction()
    {
        return participationRestriction;
    }
    public void setFrequencyLimit(Integer frequencyLimit)
    {
        this.frequencyLimit = frequencyLimit;
    }

    public Integer getFrequencyLimit()
    {
        return frequencyLimit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("actId", getActId())
            .append("name", getName())
            .append("completableFunction", getCompletableFunction())
            .append("participationRestriction", getParticipationRestriction())
            .append("frequencyLimit", getFrequencyLimit())
            .toString();
    }
}